#region license
/*
 * Copyright (C) 2007 CchenSoft.com
 * 
 * This library is free software; you can redistribute it and/or modify it 
 * under the terms of the GNU Lesser General Public License 2.1 or later, as
 * published by the Free Software Foundation. See the included License.txt
 * or http://www.gnu.org/copyleft/lesser.html for details.
 * 
 * Author: Billy Zhang
 */
#endregion

namespace CchenSoft.Workflow.Spi
{
    /**
     * Simple implemenation.
     */
    public class SimpleWorkflowEntry : IWorkflowEntry
    {
        //~ Instance fields ////////////////////////////////////////////////////////

        protected string workflowName;
        protected bool initialized;
        protected int state;
        protected long id;

        //~ Constructors ///////////////////////////////////////////////////////////

        public SimpleWorkflowEntry(long id, string workflowName, int state)
        {
            this.id = id;
            this.workflowName = workflowName;
            this.state = state;
        }

        //~ Methods ////////////////////////////////////////////////////////////////

        public long Id
        {
            set { id = value; }
            get { return id; }
        }

        public bool Initialized
        {
            set { initialized = value; }
            get { return initialized; }
        }

        public int State
        {
            set { state = value; }
            get { return state; }
        }

        public string WorkflowName
        {
            set { workflowName = value; }
            get { return workflowName; }
        }
    }
}
